var logSign = {
    URL: {
        loginUrl: "/api/signin/login",
    },
    detail: {
        signInLogin: function () {
            var qrcode = __JsUtil.GetQuery("qrcode");
            var account = $("[name='account']").val();
            var password = $("[name='password']").val();
            if (__JsUtil.isNullOrEmpty(account)) {
                $.pop.tips("请输入账号");
                return false;
            }
            if (__JsUtil.isNullOrEmpty(password)) {
                $.pop.tips("请输入密码");
                return false;
            }
            $.pop.load(true, "正在登录...");
            $.post(logSign.URL.loginUrl, {account: account, password: password}, function (data) {
                if (!data.hasError) {
                    if (!__JsUtil.isNullOrEmpty(qrcode)) {
                        window.location.href = "signin.html?qrcode=" + qrcode;
                    }
                } else {
                    $.pop.load(false, null);
                    $.pop.tips(data.error);
                }
            }, "json").error(function (XMLHttpRequest, textStatus, errorThrown) {
                $.pop.load(false, null);
                $.pop.tips("系统繁忙，请稍后" + XMLHttpRequest.status + "," + XMLHttpRequest.readyState + "," + textStatus);
            });
        }
    }
}